package com.woniuxy.controller;

import com.woniuxy.sender.PluginSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/7 0007-下午 2:46
 */
@RestController
@RequestMapping("/plugin")
public class PluginController {
    @Autowired
    PluginSender pluginSender;
    @RequestMapping("/send")
    public String send(int time){
        String msg = "hello";
        pluginSender.send(msg,time);
        return "success";
    }
}
